    package org.fly.dao;

    import org.fly.bean.Product;
    import org.fly.bean.query.ProductQuery;
    import org.apache.ibatis.annotations.Param;
    import org.springframework.stereotype.Repository;

    import java.util.List;

    /**
    * Created by autoCode on 2018-01-29 16:38:01.
    */
    @Repository
    public interface ProductDao {

    List<Product> list(ProductQuery query);

    long count(ProductQuery query);

    void  insert(Product data);

    void update(Product data);

    Product findById(String id);

    void delete(String id);

    List<Product> listByIds(@Param(value = "ids") List<String> ids);


}
